package game;

import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;

class Congrats extends Scene
{
	Background background;
	
	public Congrats()
	{
		background = new Background(19, new Point(0, 0), new Point(800, 600));
		background.setImage(19);
	}
	
	@Override
	public void update() 
	{
		if (new Rectangle(89, 553, 195, 39).contains(Mouse.getInstance().getPositionMouse().getX(),
				Mouse.getInstance().getPositionMouse().getY()))
		{
			if (Mouse.getInstance().isMousePressed(MouseEvent.BUTTON1))
			{
				Player.patrimonio = 300000;
				SceneManager.changeScene(0);
			}
		}
	}

	@Override
	public void draw(Graphics2D g2d) 
	{
		background.draw(g2d);
	}
}